package graphics.operations;

import java.awt.Graphics;
import java.awt.event.MouseEvent;

public class ProxyOperation extends Operation{

	private Operation operation;
	
	public ProxyOperation(Operation operation) {
		super();
		this.operation = operation;
	}

	public Operation getOperation() {
		return operation;
	}

	public void setOperation(Operation operation) {
		this.operation = operation;
		operation.setData(getData());
	}

	
	public void mouseClicked(MouseEvent mEvent) {
		operation.mouseClicked(mEvent);
	}
	
	
	public void mouseDragged(MouseEvent mEvent) {
		operation.mouseDragged(mEvent);
	}
	
	
	public void mouseEntered(MouseEvent mEvent) {
		operation.mouseEntered(mEvent);
	}
	
	
	public void mouseMoved(MouseEvent mEvent) {
		operation.mouseMoved(mEvent);
	}
	
	
	public void mousePressed(MouseEvent mEvent) {
		operation.mousePressed(mEvent);
	}
	
	
	public void mouseExited(MouseEvent mEvent) {
		operation.mouseExited(mEvent);	
	}
	
	
	public void mouseReleased(MouseEvent mEvent) {
		operation.mouseReleased(mEvent);	
	}
	
	
	public void drawOperationInfo(Graphics graphics) {
		operation.drawOperationInfo(graphics);
	}
}
